package exception;

public class TryCatchDemo {
    public static void main(String[] args) {
        System.out.println("程序开始执行");
       // try {
//            String line = null;
            String line="";
            System.out.println(line.length());
//        }catch(NullPointerException e){
//            System.out.println("异常状态已解决");
//        }
        System.out.println("程序结束运行");
    }
}
